-- GENERATED SPELL FOR [Moonrage Glutton] --


function spell0_1779(pUnit, Event) --@Blood Leech,Heal--
pUnit:FullCastSpellOnTarget(6958,pUnit)
pUnit:RegisterEvent('Sorts_1779', 660, 1)
end

function Sorts_1779(pUnit, Event)
local choix_sorts_1779 = math.random(0, 0)
if choix_sorts_1779 == 0 then
pUnit:RegisterEvent('spell0_1779', 1, 1)
end
end

function mob1779_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1779', math.random(1500, 3000), 1)
end

function mob1779_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1779_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1779_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1779, 1, 'mob1779_Action')
RegisterUnitEvent(1779, 2, 'mob1779_Leave')
RegisterUnitEvent(1779, 3, 'mob1779_Kill')
RegisterUnitEvent(1779, 4, 'mob1779_Die')
